package me.hellp.helloworld.design.facade;

/**
 * 门面角色：电脑
 * 
 * @author linxm
 *
 */
public class Computer {
	private Cpu cpu;
	private Disk disk;
	private Memory memory;
	
	public Computer(){
		this.cpu = new Cpu();
		this.disk = new Disk();
		this.memory = new Memory();
	}
	
	public void start(){
		cpu.start();
		disk.start();
		memory.start();
	}
	
	public void stop(){
		cpu.stop();
		disk.stop();
		memory.stop();
	}
}
